package cat.joronya.supermanager.service;

import android.os.Message;
import android.util.Log;
import cat.joronya.supermanager.Supermanager;

public abstract class SearchPrivateLeagueHandler extends BaseHandler {

	@Override 
    public void handleMessage(Message msg)
    { 
        //get data from msg 
        status = msg.getData().getInt(Supermanager.STATUS_MESSAGE);
        Log.d(TAG, "SearchPrivateLeagueHandler received status: "+status);
        
        if( status == Supermanager.PRIVATE_LEAGUE_SEARCH_OK )
        {
        	searchOk(msg);
        }
        
        super.handleMessage(msg);
    }
	
	/**
	 * Executed when received PRIVATE_LEAGUE_SEARCH_OK
	 */
	public abstract void searchOk(Message msg);
	
}
